Fix typo in byte conversion & writing in NAT-PMP

This fixes https://github.com/miniupnp/miniupnp/issues/89.

Signed-off-by: Steven Barth <cyrus@openwrt.org>