kqRWallFunctions: updated write function for consistency