From Brain to Paper: Understanding Writing Through Psychology