private void enlargeBuffer() throws FileSystemFullException {
int oldCapacity = bufferList.capacity();
if (oldCapacity > fileSystem.getFreeSpace())
throw new FileSystemFullException("RAMFileSystem reached maxSize");
bufferList.enlarge();
int newCapacity = bufferList.capacity();
// update fileSystem values