Miracle Grow, IMO, is the worst possible growing medium in existence. Sure, it will grow plants just fine, BUT. This stuff is chock full of different kinds of synthetics. I don't care what anyone says about soil not being a factor in the case of plant diseases and harmful insect populations, you will have much more of these problems with MG than you will have with Kellogs or Dr Earth or Natures Guide or any number of OMRI certified soils. And be very leery of fertilizing for the first 6 months or so as this stuff has fertilizer already added, it just doesn't say nor will MG say just how much or what it is. It says on the front "feeds up to 6 months". And grows plants twice as big. Go to their website and it says "than plants not fertilized." It does say what the stuff is made of though. Forrest products, whatever that is and peatmoss.. Oh well, what's done is done. I just wished you'd contacted me before getting this stuff. About the gnats. Don't worry about them. Worry about whitefly and aphids of which this MG stuff is probably the cause of.
There is something you can do to alleviate this. Get some GOOD manure based compost and spread it all around and under your plants. Get a gallon of feed or horticultural molasses and mix 2 oz per gallon of water and water your plants with this. This will enhance the growth of soil microbes of which there are very few in MG soils.