remove some asserts in write_to_fd

they will access tail_ information, which could be concurrently
modified by other threads

write_to_fd() could only access/update head_