Generally, your body will take care of itself in the long run. It is true that you can't go for an exceptionally long time without ejaculating. Noctournal Emissions (Wet Dreams) usually take care of this for you if you don't masturbate.
However, having said this, there is nothing medically wrong with masturbating.
Additionally, though, I think there is something to be said about the guilt that one feels about masturbating. I firmly believe that because it is still so taboo, and the fact that it is so intimate, the guilt that is associated with masturbation (if you have any) can be fairly damaging phychologically. It's not something you can talk about openly, especially in a religious or dogmatic setting, so it's a very personal struggle if you're against it. Your best bet is to either re-evaluate your ethical stance, or somehow muster the will power to overcome it. My suggestion would be the former, especially in your circumstance, when masturbation is a very intense urge.