wio: Allow passing NULL as data for zero-length writes