Fix libTDS t0004 test

assert test was wrong, length to write can be equal to buffer length.

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>