There will be an uncaught exception and subsequente writes will fail. The workaround is to close the buffer and open another one (for the same file).