I have similar problem .. I would be using wifi at home and it works fine then I goto to sleep, it would automatically switch to 3g and do data syncing. It would be ok if it wasn't for the fact that I am on the 200mb plan.
My wifi settings are set to never to sleep and battery is night mode.