let flu_writeall() return 1 when successful