SERVER-11875 Convert internal writes to use write commands