is there anyway to unlock or change a setting on the 3GS to prevent AT&T from automatically assigning a data plan to the phone?
I don't believe so. If you phone is connected to the provider's network, they can see it and tell what kind of phone it is... so if it can see the phone and identify it as a smartphone, I don't think you can get away without a data plan.