I know that you can sell a phone with a balance and AT&T will simply add the balance to your bill after a month or such. Not sure whether Apple would check to see if it’s on a next plan or not. I’ve arranged AT&T trade back and then ended up selling my phone before even with a balance on the plan.