Fix writing of bytes to param partition

Signed-off-by: task650 <task650@gmail.com>