Add write, writefull, append to struct client

Signed-off-by: Dong Yuan <yuandong1222@gmail.com>