libmultipath: fix use of uninitialized memory in write()