add write buf to /tmp/pb.tmp