always write direction to gpioN/direction