diff --git a/src/main/java/org/iq80/leveldb/table/TableBuilder.java b/src/main/java/org/iq80/leveldb/table/TableBuilder.java
index <HASH>..<HASH> 100644
--- a/src/main/java/org/iq80/leveldb/table/TableBuilder.java
+++ b/src/main/java/org/iq80/leveldb/table/TableBuilder.java
@@ -76,7 +76,7 @@ public class TableBuilder
     public long getFileSize()
             throws IOException
     {
-        return fileChannel.position();
+        return fileChannel.position() + dataBlockBuilder.currentSizeEstimate();
     }
 
     public void add(BlockEntry blockEntry)
Include unwritten block in TableBuilder.getFileSize() estimate