write mac