Does that mean that all data are already saved, or just that there was no communication problems, addresses, etc.

When I'm doing something like:

res = writeBytes(buf1)      //1

if(res == 0 )
    res = writeBytes(buf2)      //2

Can I be sure the data from point 1 are already saved when I write data in point 2 ?