A new biography of the late novelist details his youthful escapades, messy relationships and intense commitment to his craft.