Generally speaking, Shimano's 7 speed gears are not compatible with their 9 speed counterparts. The derailleur has a different parallelogram, and the shifters move it in differently spaced steps. So, in addition to the different width between the ends of the frame and the wheel-dishing issue mentioned by Record Ace above, the complete geartrain would probably all need to be swopped out. Are you sure all these changes would be worth it for just another couple of cogs? What you might want to consider instead is buying a 7 speed cassette with a wider range of cog sizes. 12 to 32 are readily available in 7 speed cassettes. The gaps in the gearing are not as bad as you might fear.