Ego is the correct answer.
The ego works by reason it is the decision-making component of personality. The ego shapes the behavior according to society norms, etiquette, and rules. It operates in such a way that postpones or compromises satisfaction in order to avoid negative consequences. Thus, when Logan decides he'll only attend the party after finishing writing his paper, his decision reflects the functioning of his ego.