write sdo
sdo write function