Datalink write and writeData