filesink: Fix buffered mode writing of buffer lists and buffers with multiple memories
Fixing miscalculated buffer index when a buffer holds multiple memories and it's not aligned to the vector size 16
Fixing miscalculated buffer index when a buffer holds multiple memories and it's not aligned to the vector size 16