Function write (12/32)

Function write