She _____ the letter before she went to bed last night. A. wrote B. has written C. had written D. will write