I figured another way out, thought it could be of help to others as well:
anno[subjectHits(hits),4]<-huvec[queryHits(hits),4]
I checked the solution, and it comes out correct. But honestly, I am not sure how this one worked i.e. how it could find the corresponding hits?