sample_store: Fix per-byte write address calculation