A couple of thoughts on this.
First, Anderton hit it on the head. I was going to say at the very least, make a new copy of the file and remove ALL processing and mixing then start fresh from there. But that was the least. My suggestion for an ideal solution is exactly what Anderton already said, start over and record ALL the parts from scratch i.e. do a cover version of the song you already wrote.
Beyond that I will suggest a method I've come to adopt. Like you, I write as I record. While I think Anderton's method of writing and performing for months before even thinking of recording is probably what we all should be doing, I just don't work that way most of the time.
As a work-around I've started using the following method. I like to start out with the goal of making an album instead of just one song. So what I do now is I try to completely separate the writing process from the mixing process. And when I say separate I'm talking in terms of both months and songs. Let me explain a little bit.
In the old days I would noodle around until I stumbled on a spark or idea I thought was worth pursuing. And I would work on that exclusively until it was completely done. Then I'd move on to the next one.
Now? I do the same noodling for ideas and sparks. But when I find one, I try to develop it from a writing/recording parts standpoint only. I purposely keep it raw with minimal use of compression/eq/etc. I'll toy with things like reverb/delay/Leslie etc. But even then I make a point to only throw rough settings at it. Once I'm confident I have all the parts I need more or less written and captured, I stop and move on. I do not mix at all. Instead I put that one down and go back to looking for the next idea.
Once I get to the point where I have an album's worth of tracks that for lack of a better description, fit together in an album sort of way, I go into mix mode. Which means I go back to the original files and start working on them from a mixing point of view. That's not to say I won't actually re-record parts or write/record new parts at that point. But I make a definitive choice to switch from writing mode to mixing/finishing mode.
I know it probably sounds silly. But I have to say that approaching things this way has really enabled me to turn a corner in the output quality of what I do.