piggy5.c without non-blocking writes