Balance functions in a thermal model with resonances