I think you may have fungus gnats, they are very common I get them every grow. They lay eggs in the top layer of soil. If you cover it with rice holes, sand, perilite.. they won't be able to penetrate it.
I use sand or perilite. Put enough down that it will cover the top of your pot and then let your media dry up a bit for a few days and that should take care of them