The neutron spin structure function from the deuteron data in the resonance region