Function write (6/32)

Function write