Kernel write function, along with helpers
Implemented Kernel Read function