Plymouth Rock, Winneshiek County, Iowa, USA July 18, 2014
I don't know if the fly is associated with any of these 3 galls but I'm adding them in case it might help.
Goldenrod galls 1 & 2, upper side of leaves
There were also several wasps in the jar. Parasitoids?