In linuxlib.php change the code to this:
$totalinode = (int) (($disk / 100) + 1);
$perblock = 1;
$totalblock = $disk / $perblock;
lxshell_return("setquota", "-u", $username, $totalblock, $totalblock, $totalinode, $totalinode, "-a");
}
This:
$perblock = getFSBlockSizeInKb();
Will assume the block is 4 kB and ex. instead of 10 GB user will get just 10/4=2,5 GB which is wrong !