implemented write to turn fan off