Fix realloc memory Error!
When file size is not enough(writing), the size should be doubled `capb`.
But not `ftellb()`.