Non-sequential striping encoder from replication to erasure coding for distributed storage system