By that time he has his famous novel A. Had been writing B. Had written C. Has written
B)had written .....................