Many, many writers drink while writing. The alcoholic writer is almost a cliché. My experience in talking with those who had a drinking problem, and then quit drinking, is that they write more lucidly, need to do less revision, plot better, and submit more material after they stop abusing alcohol.