[app][lkboot] fix lkb_write() for len 65536