write piece to disk