Write to tar archive