writing kb