Deterministic Coherent Writing of a Long-Lived Semiconductor Spin Qubit Using One Ultrafast Optical Pulse