well since your wheel is bolted to the dropouts, and he dropout is bent, it doesn't really matter if the rest of the frame is bent.
Your bike probably had 126mm spacing, and if the left drop is bent in 6mm, leaving the drive side drop normal, that would account for the cog being about 6mm out.