Spin dependent structure functions in the cloudy bag model