-- 'Thinking' is a gerund-- that is, a noun-- therefore it can easily be modified by an adjective: good schooling, happy driving, bad timing. -- Here, perhaps the adverb modifies the whole clause ( 'Wrongly [believing he did the work]'). I can't really get my head around this one clearly, though.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.