If it's a 7 spd freewheel/cassette, and it's hitting the spokes, you have a bent derailleur hanger (or equivalent). This may require replacement - or brute force. I am not going to be the one here to explain the methodology involved. I'd suggest a trip to you LBS. You're almost home!