You're not the first one to write while under the influence of something. The stars only know what Casteneda was smoking when he wrote his books. However is might be a good idea to do your editing when you're sober or have someone else do it for you. Oh, and if you should get to the point where you submit to a publisher, depending on the subject matter, you might want to consider not mentioning that you were buzzed when you wrote it until after you sell your first million copies and the check has cleared.