fixed bug in soft_i2c.h - write() return value was wrong