fixed memory leak and documentation in dev/ata/ata.c