Tim is a clever, hardworking, and introspective boy. He takes quiet, intelligent paths through trying situations, as opposed to his father and brother, who share a boldness and impetuousness.
"To write a novel", is the subject in the infinitive phrase.
His ultimate goal is to write a novel. So, "To write a novel" functions as a noun in the sentence. Hence, the answer is A. Noun.