Update window.cpp

Updated sizes for lcd, fixed write function