The correct option is A writing
Since the sentence is in the future perfect continuous tense, the main verb 'write' must be in the present participle form, that is, the '-ing' form. ‘Write’ becomes ‘writing’ to complete this sentence. It tells us that the action of ‘writing’ began in the past, is continuing at the present, and will continue in the future till 6pm.