Write mode switch