spi: use is_power_of_2 instead of hweight32 in spi_nor_write()