Those are fungus gnats. They live and grow in the soil, you over watered for long periods and that's why you have them.

Look for products that will kill fungus gnats. Gnatrol is the best if you can find some.