Fix another gcc signedness warning in write.c