Removed the unnecessary writeall from cat