Polarized structure functions of the nucleon in the resonance region