You will not lose unlimited data as long as you are on the same contract, so if you keep your 3gs no problem, if you want an iphone 4 thenyou could buy a sim free one and cut your sim down to a mini sim, then you will still have unlimited data.
If you upgrade to an iphone 4 and sign a new contract then you will lose unlimited data.