not to write 0 bytes

write have undefined( not mentioned behaviour when 0 bytes written)
write xds data even if start_time is 0