he returned to moscow and devoted himself to writing