Write filter: fixed handling of sync bufs (ticket #132).