flash: at91samd: flash write code cleaning