The correct answer is A.
B is incorrect. Normally the bibliography is middle to last in steps of writing.
C is incorrect. This is done in the editing phase.
D is incorrect. This is done in the revising phase.
E is incorrect. Research notes, although helpful, should be gathered before the first draft and put into an outline.