If you used "organic" soil, I am told that most likely added to the problem. That was the case for me. I removed the organic, replaced with sterile, then washed sand, rocks. Totally eliminated the gnats, in just about a week.
I like the cinnamon idea, make the cage smell good!!