Add inner cycle for tar.gz sd card data writing.

Some build engineers like as lazy animals:)